//
//  HTMTabBarView.m
//  QVBusUser
//
//  Created by Ting Han on 2017/8/31.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "HTMTabBarView.h"

@implementation HTMTabBarView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        [self setupView];
    }
    return self;
}
- (void)setupView{
//    [self addSaoyisaoButton];
//    [self addLocationBtn];
//    [self addBalanceButton];
}


- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    if (self.isHidden == NO) { // 当前界面显示
        CGPoint newPoint = [self convertPoint:point toView:self.saoyisaoBtn];
        if ( [self.saoyisaoBtn pointInside:newPoint withEvent:event]) {             return self.saoyisaoBtn;
        }else{
            return [super hitTest:point withEvent:event];
        }
    }else {
        return [super hitTest:point withEvent:event];
    }
}

@end
